package van.planifolia.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * Created by Intellij IDEA<br>
 *
 * @author Planifolia.Van
 * @version 1.0
 * @date 2022/11/17 17:30
 */
@Data
@ApiModel("用户的信息")
@TableName("user")
@Accessors(chain = true)
public class User {

    @TableId(type = IdType.AUTO)
    @ApiModelProperty(name = "id", value = "用户id",  dataType = "int")
    private Integer id;

    @TableField(value = "t_username")
    @ApiModelProperty(name = "username", value = "用户名字", dataType = "String")
    private String username;

    @TableField(value = "t_age")
    @ApiModelProperty(name = "age", value = "用户年龄", dataType = "String")
    private String age;

    @TableField(value = "t_address")
    @ApiModelProperty(name = "address", value = "用户住址", dataType = "String")
    private String address;
}
